﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;

namespace IODataAccess
{
    public class clsDADungChung
    {
        public DataTable GetDataTableSQL(string sql, string tbName)
        {
            DataTable tb = new DataTable(tbName);
            clsDAConnection conn = new clsDAConnection();
            conn.openCon();
            SqlDataAdapter apdapter = new SqlDataAdapter(sql, conn.getCon());
            apdapter.Fill(tb);
            conn.closeCon();
            return tb;
        }
    }
}
